import ClientInfo from "./components/ClientInfo";
import ClientService from "./components/ClientService";
import ClientStage from "./components/ClientStage";
import AcceptancePlan from "./components/AcceptancePlan";
import ConstructionLog from "./components/ConstructionLog";
import ConstructionPlan from "./components/ConstructionPlan";
import Rectification from "./components/rectification";
import Attachment from "./components/Attachment";
import PaymentPlan from "./components/PaymentPlan";
import ContractMaterials from "./components/ContractMaterials";
import PackageInformation from "./components/PackageInformation"

export const clientType = {
  CLIENT_INFO: "clientInfo",
  CLIENT_SERVICE: "clientService",
  CLIENT_STAGE: "clientStage",
  CONSTRUCTION_LOG: "constructionLog",
  ACCEPTANCE_PLAN: "acceptancePlan",
  Package_Information: "packageInformation",
  CONSTRUCTION_PLAN: "constructionPlan",
  RECTIFICATION: "rectification",
  ATTACHMENT: "attachment",
  PAYMENT_PLAN: "paymentPlan",
  Contract_Materials: "contractMaterials"
};

export const dynamicComponentMap = new Map([
  [clientType.CLIENT_INFO, ClientInfo],
  [clientType.CLIENT_SERVICE, ClientService],
  [clientType.CLIENT_STAGE, ClientStage],
  [clientType.CONSTRUCTION_LOG, ConstructionLog],
  [clientType.CONSTRUCTION_PLAN, ConstructionPlan],
  [clientType.Package_Information, PackageInformation],
  [clientType.ACCEPTANCE_PLAN, AcceptancePlan],
  [clientType.RECTIFICATION, Rectification],
  [clientType.ATTACHMENT, Attachment],
  [clientType.PAYMENT_PLAN, PaymentPlan],
  [clientType.Contract_Materials, ContractMaterials]
]);

export const acceptancePlanType = {
  ACCEPTANCE: 1, //商家验收
  ACCEPTANCE_TEMPLATE: 0 //商家验收标准模版
};
